POV-Ray : Newsgroups : povray.programming : 64 bit or 32 bit? : Re: 64 bit or 32 bit? Server Time
28 Jul 2024 12:28:36 EDT (-0400)
  Re: 64 bit or 32 bit?  
From: Warp
Date: 1 Aug 2001 17:02:01
Message: <3b686e48@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
: POV-Ray needs only 32 bit ints, so I would expect that with 64 bit ints you
: waste a lot of memory bandwidth.

  Ints are not necessarily 64 bits long even in a 64 bit system. Longs are.

  What gets longer are pointers (and these are used a lot in machine code
generated from C). Pointers are usually 64 bits long in a 64 bits system.

  Whether compiling to 64 bits is better than to 32 bits depends on the
processor and other hardware. If the processor has excellent 64 bit code
support and poor 32 bit support, then the 64 bit code can be faster. However,
I don't think this is usually the case.
  The problem of having larger data types (usually pointers and if longs
are used) is that caches and code pipelines get full quicker which actually
makes the code slower. This means that in some cases 64-bit code can be
slower then 32-bit.

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.